﻿<%@ Page Title="" Language="VB" MasterPageFile="~/mobile/MobileAdmin.master" AutoEventWireup="false" CodeFile="members.aspx.vb" Inherits="mobile_members" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <div data-role="content">
            <asp:HiddenField ID="UniID" runat="server" />
            <ul data-role="listview" data-inset="true" data-filter="true" data-theme="c" data-dividertheme="f">
                <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" >
                    <ItemTemplate>
                        <li>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/mobile/profile.aspx?id=" + Eval("ID").tostring %>'><%# Eval("FIRST_NAME") + " " + Eval("LAST_NAME")%></asp:HyperLink></li>
                    </ItemTemplate>
                </asp:ListView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                    SelectCommand="SELECT * FROM [MEMBERS] WHERE ([UNIVERSITY_ID] = @UNIVERSITY_ID)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="UniID" Name="UNIVERSITY_ID" 
                            PropertyName="Value" Type="Int32" DefaultValue="1" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </ul>
        </div>
   
</asp:Content>

